/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yinsh
 * Date: 2025-01-15
 * Time: 15:51
 */
public class OuterClass {
    int s = 1;
    int s2 = 2;
    String str = "外部类";
    void func(){
        System.out.println("外部类的方法");
    }
   class InnerClass {
        int s3 = 3;
        String str = "内部类";
        void test () {
            OuterClass outerClass = new OuterClass();
            System.out.println(s);
            System.out.println(s3);
            System.out.println(str);
            func();
            System.out.println(outerClass.str);
        }
    }
}
